package top.caulife.lab.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.caulife.lab.entity.GetUnitNo;
import top.caulife.lab.entity.Response;
import top.caulife.lab.service.GetUnitNoService;

import java.util.List;

@RestController
public class GetUnitNoController {
    @Autowired
    GetUnitNoService getunitnoService;

    @RequestMapping("/getunitnojs")
    public Response getunitnojs(@RequestParam("unitno") String unitno){
        List<GetUnitNo> getunitno = getunitnoService.getunitnojs(unitno);
//        CheckStepState checkstepstate = checkstepstateService.checkstepstatejs(stepno);
//        if (user!=null){
        return Response.success(getunitno);
//        }
//        return Response.fail((Object) null);
    }

}